{% extends "book/base.html" %}
{% load tools %}

{% block title %}书名{% endblock %}

{% block content %}

<p>额外信息：{{ extra }}</p>

{% if books %}
<ul>
{% for book in books %}
  <li><a href="{% url "book:detail" book.pk %}">{{ book.name }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No books avaibable.</p>
{% endif %}

{% endblock %}
